package cn.jiyun.mapper;

import cn.jiyun.pojo.Goods;
import cn.jiyun.pojo.Range;
import org.apache.ibatis.annotations.Select;
import tk.mybatis.mapper.common.Mapper;

import java.util.List;

public interface GoodsMapper extends Mapper<Goods> {
    @Select("select status as\"name\" , count(*) as \"value\" from goods group by status")
    List<Range> yuanyu();
}
